package com.cc.micro.api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 产品信息表
 * </p>
 *
 * @author cc
 * @since 2023-07-01
 */
@Data
@ApiModel("投标产品信息表")
public class LoanInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("产品标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty(value = "产品名称")
    @TableField(value = "product_name")
    private String productName;
    @ApiModelProperty("产品利率")
    @TableField(value = "rate")
    private BigDecimal rate;
    @ApiModelProperty("产品期限")
    @TableField(value = "cycle")
    private Integer cycle;
    @ApiModelProperty("产品发布时间")
    @TableField(value = "release_time")
    private LocalDate releaseTime;
    @ApiModelProperty("产品类型 0新手宝，1优选产品，2散标产品")
    @TableField(value = "product_type")
    private Integer productType;
    @ApiModelProperty("产品编号")
    @TableField(value = "product_no")
    private String productNo;
    @ApiModelProperty("产品金额")
    @TableField(value = "product_money")
    private BigDecimal productMoney;
    @ApiModelProperty("产品剩余可投金额")
    @TableField(value = "left_product_money")
    private BigDecimal leftProductMoney;
    @ApiModelProperty("最低投资金额，即起投金额")
    @TableField(value = "bid_min_limit")
    private BigDecimal bidMinLimit;
    @ApiModelProperty("最高投资金额，即最多能投多少金额")
    @TableField(value = "bid_max_limit")
    private BigDecimal bidMaxLimit;
    @ApiModelProperty("产品状态（0未满标，1已满标，2满标已生成收益计划）")
    @TableField(value = "product_status")
    private Integer productStatus;
    @ApiModelProperty("产品投资满标时间")
    @TableField(value = "product_full_time")
    private LocalDateTime productFullTime;
    @ApiModelProperty("产品描述")
    @TableField(value = "product_desc")
    private String productDesc;



}
